package com.atguigu.spring.beans;

public class Car {
	//测试
	private String company;
	private String brand;
	private double price;
	private int maxSpeed;

	public Car(String company, String brand, double price) {
		super();
		this.company = company;
		this.brand = brand;
		this.price = price;
	}

	public Car(String company, String brand, int maxSpeed) {
		super();
		this.company = company;
		this.brand = brand;
		this.maxSpeed = maxSpeed;
	}
    
	/**
	 * @return company
	 */
	public String getCompany() {
		return company;
	}

	/**
	 * @param company 要设置的 company
	 */
	public void setCompany(String company) {
		this.company = company;
	}

	/**
	 * @return brand
	 */
	public String getBrand() {
		return brand;
	}

	/**
	 * @param brand 要设置的 brand
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}

	/**
	 * @return price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price 要设置的 price
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @return maxSpeed
	 */
	public int getMaxSpeed() {
		return maxSpeed;
	}

	/**
	 * @param maxSpeed 要设置的 maxSpeed
	 */
	public void setMaxSpeed(int maxSpeed) {
		this.maxSpeed = maxSpeed;
	}

	/*
	 * （非 Javadoc）
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Car [company=" + company + ", brand=" + brand + ", price=" + price + ", maxSpeed=" + maxSpeed + "]";
	}

}
